package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLMD5;
import HLLib.base.HLString;

public class HLClassMD5 extends HLLibClass {
    public HLClassMD5(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLMD5();
    }

    public void StaticExecute(int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            if (resultOwnerObject == null) {
                HLMD5.CalcMD5((HLString)args.GetObject(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, HLMD5.CalcMD5((HLString)args.GetObject(0)));
            }
            break;
        }
        }
    }
}
